package com.chaoyer.cynet.service;

import com.chaoyer.cynet.cache.domain.GhostPost;
import com.chaoyer.cynet.common.exception.ValidateException;
import com.chaoyer.cynet.entity.PostPv;

import java.util.List;

/**
 * Created by apple.
 * Description:
 * Date: 2018-05-20
 * Time: 下午4:25
 */
public interface PostPvService {

    /*
     * 获取文章pv
     * */
    PostPv getPvByPostId(String postId) throws ValidateException;

    /*
     * 增加pv
     * */
    void addPvByPostId(String postId);

    /*
     * 根据名称查询
     * */
    List<GhostPost> searchByPostName(String name);

}
